
<style>
    #cmis-container div.dropdown ul.right-click-pop-up li a i{
        display: none;
    }
</style>
<!-- single folder-->
<ul class="dropdown-menu hide-platform-pad right-click-pop-up" role="menu" ng-if="(multipleChooseFiles.length<2 && supportFile && !file.isDocument())">
    <li ng-if="!searchModeIsOn && file.allowableActions.canMoveObject && !isSharedWithMe">
        <a ng-class="{'style-disable':file.readOnly,'':!file.readOnly}"  class="popup-left-border" ng-click="!file.readOnly && moveTo(file,$event)">
            <i class="icon icon-move-file"></i>
            <span>{{ 'move_to' | translate }}</span>
            <!--<span class="fa-stack" style="width:1em;">-->
                <!--<i class="fa fa-folder fa-stack-1x"></i>-->
                <!--<i class="fa fa-arrow-right fa-stack-1x impt-color"></i>-->
            <!--</span>-->
        </a>
    </li>
    <!--canApplyACL 这个权限 是 consume 和 其它三个权限区别 collaborate contribute 一样的 manage多一个 canMoveObject权限-->
    <li ng-if="!detailPanelIsShow">
        <a ng-click="showDetail()">
            <i class="icon icon-info"></i>
            <span>{{'view_detail' | translate }}</span>
        </a>
    </li>
    <li ng-if="file.allowableActions.canUpdateProperties && !isSharedWithMe">
        <a ng-class="{'style-disable':file.readOnly,'':!file.readOnly}" class="popup-left-border" ng-click="!file.readOnly && rename(file)">
            <i class="icon icon-edit" ></i>
            <span>{{ 'rename' | translate }}</span>
        </a>
    </li>
    <li ng-if="!file.isRoot() && !file.isDocument() && title =='Shared Document'">
        <a class="popup-left-border" ng-click="setPermission(file)">
            <i class="fa fa-cog"></i>
            <span>{{'manage_permission' | translate}}</span>
        </a>
    </li>
    <li ng-if="!file.isRoot() && !file.isDocument() && file.allowableActions.canDeleteObject">
        <a ng-class="{'style-disable':file.readOnly,'':!file.readOnly}" class="popup-left-border" ng-click="!file.readOnly && deleteFolder(file, $event,true,true)">
            <i class="icon icon-delete"></i>
            <span>{{'delete' | translate }}</span>
        </a>
    </li>
</ul>
<!-- single document -->
<!-- doc owner-->
<ul class="dropdown-menu hide-platform-pad right-click-pop-up" role="menu" ng-if="(multipleChooseFiles.length<2 && supportFile && file.isDocument()) && !currentFolder.isReadonly() && docOwner">
    <!--canApplyACL 这个权限 是 consume 和 其它三个权限区别 collaborate contribute 一样的 manage多一个 canMoveObject权限-->
    <!--<li class="" >-->
        <!--<a href="javascript:;">-->
            <!--<span class="cloud-reading-share" file="file" current-scope="this"></span>-->
        <!--</a>-->
    <!--</li>-->
    <li ng-if="file.allowableActions.canGetContentStream" hover-dropdown ng-class="{'style-disable':!file.canPreview(),'':file.canPreview()}">
        <a class="popup-left-border" ng-click="preview(file,$event)" hover-dropdown-toggle>
            <i class="icon icon-eye"></i>
            <span>{{'preview' | translate }}</span>
        </a>
    </li>
    <!-- -->
    <li ng-if="!isSharedWithMe && isCpdfDoc && docOwner && currentFolder.isCDRMFolder()" hover-dropdown>
        <a class="popup-left-border" ng-click="setFileCDRMPerm(file,false)" hover-dropdown-toggle>
            <i class="icon icon-protect"></i>
            <span>{{'权限修改' | translate }}</span>
        </a>
    </li>
    <li style="position: relative;" ng-if="!isSharedWithMe && docOwner" hover-dropdown>
        <span class="cloud-reading-share" file="file" hover-dropdown-toggle current-scope="this"></span>
        <a href="javascript:;" style="position: relative;z-index:0;">
            <i class="icon icon-external-link"></i>
            <span>{{'share_file' | translate }}</span>
        </a>
    </li>
    <li role="separator" class="divider" ng-if="!isSharedWithMe"></li>
    <li ng-if="!searchModeIsOn && file.allowableActions.canMoveObject && !isSharedWithMe" hover-dropdown>
        <a class="popup-left-border" ng-click="moveTo(file,$event)" hover-dropdown-toggle>
            <!--<span class="fa-stack" style="width:1em;">-->
            <!--<i class="fa fa-folder fa-stack-1x"></i>-->
            <!--<i class="fa fa-arrow-right fa-stack-1x impt-color"></i>-->
            <!--</span>-->
            <i class="icon icon-move-file"></i>
            {{ 'move_to' | translate }}
        </a>
    </li>
    <li ng-if="!searchModeIsOn && file.allowableActions.canMoveObject && currentFolder.isCDRMFolder() && !isSharedWithMe && !currentFolder.isPrivateFolder()" hover-dropdown>
        <a class="popup-left-border" ng-click="moveToPrivateFolder(file,$event)" hover-dropdown-toggle>
            <i class="icon icon-move-file"></i>
            {{ 'make_private' | translate }}
        </a>
    </li>
    <li ng-show="file.isDocument() && repository == 'fxcld' && device=='foxitReader' && showSendEmail" hover-dropdown>
        <a ng-click="sendViaEmail(file)" hover-dropdown-toggle>
            <i class="fa fa-envelope-o"></i>
            <span>{{'send_via_email' | translate }}</span>
        </a>
    </li>

    <li ng-if="isSharedWithMe && file.allowableActions.canGetContentStream && (device != 'foxitReader' || isIEorEdge) && !isSafari && file.description.canDownload==1" hover-dropdown>
        <a class="popup-left-border" ng-click="download(file)" hover-dropdown-toggle>
            <i class="icon icon-down"></i>
            <span>{{'download' | translate }}</span>
        </a>
    </li>
    <li ng-if="!isSharedWithMe && file.allowableActions.canGetContentStream && (device != 'foxitReader' || isIEorEdge) && !isSafari" hover-dropdown>
        <a class="popup-left-border" ng-click="download(file)" hover-dropdown-toggle>
            <i class="icon icon-down"></i>
            <span>{{'download' | translate }}</span>
        </a>
    </li>
    <li role="separator" class="divider" ng-if="!isSharedWithMe && !detailPanelIsShow && file.description.canDownload"></li>
    <li ng-show="!detailPanelIsShow" hover-dropdown>
        <a ng-click="showDetail()" hover-dropdown-toggle>
            <i class="icon icon-info"></i>
            <span>{{'view_detail' | translate }}</span>
        </a>
    </li>
    <li ng-if="file.allowableActions.canUpdateProperties" hover-dropdown>
        <a class="popup-left-border" ng-click="rename(file)" hover-dropdown-toggle>
            <i class="icon icon-edit" ></i>
            <span>{{ 'rename' | translate }}</span>
        </a>
    </li>
    <li ng-if="file.allowableActions.canUpdateProperties && !isCpdfDoc" hover-dropdown>
        <a class="popup-left-border" ng-click="openModifyFilePicker(file)" hover-dropdown-toggle>
            <i class="icon icon-up" ></i>
            <span>{{ 'upload_new_version' | translate }}</span>
        </a>
    </li>
    <li ng-if="file.allowableActions.canDeleteObject" hover-dropdown>
        <a class="popup-left-border" ng-click="delete(file)" hover-dropdown-toggle>
            <i class="icon icon-delete"></i>
            <span>{{'delete' | translate }}</span>
        </a>
    </li>
    <li role="separator" class="divider" ng-if="file.allowableActions.canDeleteObject && !isSharedWithMe"></li>
    <li ng-if="file.allowableActions.canUpdateProperties" class="disabled">
        <a >
            <i class="icon icon-up" title="{{'高级编辑' | translate }}"></i>
            <span translate="高级编辑"></span>
        </a>
    </li>
    <li ng-if="file.allowableActions.canUpdateProperties" class="disabled">
        <a >
            <i class="icon icon-up" title="{{'国密签章' | translate }}"></i>
            <span translate="国密签章"></span>
        </a>
    </li>
    <li ng-if="file.allowableActions.canUpdateProperties" class="disabled">
        <a >
            <i class="icon icon-up" title="{{'互联表单' | translate }}"></i>
            <span translate="互联表单"></span>
        </a>
    </li>
    <li ng-if="file.allowableActions.canUpdateProperties" class="disabled">
        <a >
            <i class="icon icon-up" title="{{'工作流' | translate }}"></i>
            <span translate="工作流"></span>
        </a>
    </li>
    <li ng-show="fromFillAndSign" class="{{ fromFillAndSign }}">
        <a ng-click="fillAndSign(file)">

            <i class="fa fa-link"></i> fill and sign {{ fillAndSign }}
        </a>
    </li>
    <li ng-if="file.isAllowEdit() && repository!='fxcld'" ng-class="{'style-disable':!file.canEdit(),'':file.canEdit()}">
        <a class="popup-left-border" ng-click="edit(file)">
            <i class="fa fa-edit"></i>
            <span>{{'edit' | translate }}</span>
        </a>
    </li>
    <!--<li role="separator" ng-show="file.contentStreamMimeType=='application/pdf'" class="divider"></li>-->
    <!--<li ng-show="file.contentStreamMimeType=='application/pdf'">-->
        <!--<a class="popup-left-border" href="https://www.foxitsoftware.com/pdf-editor/?fromcloudreading=right-pdf2word" target="_blank">-->
            <!--<i class="fa fa-long-arrow-right fa-fw"></i> {{'PDF2Word' | translate }}-->
        <!--</a>-->
    <!--</li>-->
    <!--<li ng-show="file.contentStreamMimeType=='application/pdf'">-->
        <!--<a class="popup-left-border" href="https://www.foxitsoftware.com/pdf-editor/?fromcloudreading=right-EditPDF" target="_blank">-->
            <!--<i class="fa fa-edit fa-fw"></i> {{'edit' | translate }} {{ 'pdf' | translate }}-->
        <!--</a>-->
    <!--</li>-->
    <!--<li ng-show="file.contentStreamMimeType=='application/pdf'">-->
        <!--<a class="popup-left-border" href="https://www.foxitsoftware.com/pdf-editor/?fromcloudreading=right-OrganizePDF" target="_blank">-->
            <!--<i class="fa fa-gears fa-fw"></i> {{'organize' | translate }} {{ 'pdf' | translate }}-->
        <!--</a>-->
    <!--</li>-->
    <!--<li ng-show="file.contentStreamMimeType=='application/pdf'">-->
        <!--<a class="popup-left-border" href="https://www.foxitsoftware.com/pdf-editor/?fromcloudreading=right-SignPDF" target="_blank">-->
            <!--<i class="fa fa-thumb-tack fa-fw"></i> {{'sign' | translate }} {{ 'pdf' | translate }}-->
        <!--</a>-->
    <!--</li>-->
</ul>
<!-- single document  not doc owner-->
<ul class="dropdown-menu hide-platform-pad right-click-pop-up" role="menu" ng-if="(multipleChooseFiles.length<2 && file.isDocument()) && !docOwner">
    <li ng-if="!isSharedWithMe && isCpdfDoc" hover-dropdown>
        <a class="popup-left-border" ng-click="requestForShare(file)" hover-dropdown-toggle>
            <i class="icon icon-eye"></i>
            <span>{{'请求共享' | translate }}</span>
        </a>
    </li>

</ul>
<!-- multiplefiles-->
<ul class="dropdown-menu hide-platform-pad right-click-pop-up" role="menu" ng-if="(multipleChooseFiles.length>1) && !currentFolder.isReadonly() && (canMoveMultipleFiles || canDeleteMultipleFiles)">
    <li ng-if="!searchModeIsOn && canMoveMultipleFiles && !isSharedWithMe">
        <a class="popup-left-border" ng-mousedown="moveTo(multipleChooseFiles,$event)">
            <i class="icon icon-move-file"></i>
            <!--<span class="fa-stack" style="width: 16px;height: 20px;line-height: 20px;">-->
                <!--<i class="fa fa-folder fa-stack-1x"></i>-->
                <!--<i class="fa fa-arrow-right fa-stack-1x impt-color"></i>-->
            <!--</span>-->
            <span>{{ 'move_to' | translate }}</span>
        </a>
    </li>
    <li ng-if="canDeleteMultipleFiles">
        <a class="popup-left-border" ng-mousedown="multipleDel($event)">
            <i class="icon icon-delete"></i>
            <span>{{'delete' | translate }}</span>
        </a>
    </li>
    <li ng-if="canDownloadMultipleFiles && !isSafari">
        <a class="popup-left-border" ng-mousedown="multipleDownload()">
            <i class="icon icon-down"></i>
            <span>{{'download' | translate }}</span>
        </a>
    </li>
    <li>
        <a class="popup-left-border" ng-if="phantomSubscriptionStatus && !isEnterpriseSite" ng-mousedown="mergePdf(multipleChooseFiles,$event)" ng-class="{'hide':canMerge(multipleChooseFiles)==false,'':canMerge(multipleChooseFiles),'style-disable':disableMerge}">
            <i class="icon icon-merge"></i>
            <span>{{'merge_pdf' | translate }}</span>
        </a>
    </li>
</ul>